// 公共的请求方法
import base from './base'
import axios from '@/utils/request'
const api = {
    // 获取推荐音乐
    getMusic(limit=6) {
        //return axios.get(base.host + base.musicUrl + '?limit=' + limit)
        return axios.get(`${base.musicUrl}?limit=${limit}`)
    },
    getSong() {
        return axios.post(base.newsong, {
            params: "IZ+w5OfW3rRPTIqi7F/038d+jTtdXmo1vsWV2lMZ3nAHFK5h3Ac0fM1z2yK+4kTo",
            encSecKey:
                "14d91aef4f16e63d72081a7195fbdcf9158f946cb46a89ae51c2baf5b95b716e301513d7c70800c74dad1b20350f71c4320e4729b5e6c17f18351a48f85dc04674cc3508b45ce931e4ea2d9c58ce60e5668a1b147aafb7893eca8a5a066581463f4ae653e4ffa06bcafec0712442204676a63952f9d241b73da83ab087d4094b",
   
        });
    },
    getHotSong() {
        return axios.post(base.hotSong,{
            params: "+nw597JS9LPNxxQUKHYYayy/tTGisJDIX90AJCd9gZ4Y1QkzQndQlEwP8LobWih3",
            encSecKey:"c3e7c26347b02cdb8b3a2b41aabd6a32d325b741d2eae913a3cd1481e47472eac1b28fa3157a25515e0b23414d3432ca605ff78a146c075c197792c83398e323574c193a52103999c2c15ce9426ce7be9986a0c052751c8b22beb3cf0e81d9b7c7aa94f000967016ed34b626df0e27c4936425ce6e67b6a0c7dfbed3bb98ada8",
        })
    },
    getHotSearch() {
        return axios.post(base.hotSearch, {
            params: "K+X3AD8LpdZBja9Uq5EjHP5uaFZN9Oj9UewMb6U0kh0=",
            encSecKey:"ddf6a68d0b7c8883fe3a07a176d3f3da3e00c657771c25f34fb317a1f60f288149ba75f900983df7dd5e306ddfc38e4a38681d97ae38388dcbb7c85039b05bb7b04eb14ae79753518708df601e94b3dadf1958b036ec2e01b98f7ca5c47b7d1579f1186aef3d3b82493e040f5299bfb4c815591dd59a1acea3e196e4de751f1a"
        })
    },
    Search(params) {
        return axios.get(base.search, {
            params
        })
    },
    playList() {
        return axios.post(base.musicplaylist,{
      params:'/M4pWHovhxJeXzURzkxSxcKfIFFPaP7cvj3rZO7OD831sEicQ0c49kvBSHVQyqdZQxWuUxOC1T4q4RY0qS29j1inZL2JIj+Liral/cfL6sw=',
      encSecKey:'16ef1fe759409067c91db120f04b6a2b6ec494046c41ce4d2b56fe1cfe214775c192d3423e2f524bc7973c4f6f5f0be8ec9869c8ee5163d5b2e4b2e9ab2db73b55213e7c7703a0792dc3b3dcabfeb60211cc29184a80988ea566a775986e6e304cf2a4a51da39169e9a316fcd716da08c1e61d809a5f61359ff33318b07aff63'
    })
    },
    SongUrl(params) {
        return axios.post(base.songUrl, {
            params:'XA86f32PO9F66jiQS9rFYL7q2NrORVgLdwj7nboO1LKgPv3TGqsGvOLNeJg1B2ZToZIL0J8JCVmiExnzM9un+80mbyxvN/Y1AVXPPvIrEUOtTclqxSRopiAYu5zaNN21',
      encSecKey:'3803141bfad622865ff8a747d84e10948e7f50bd2cee5ac92114a83d44630c4111fde9a3c92da58f20d174884a738746f8611647209a880aee3f022fbbb0b1f4215e0fd76042d5b7e2fc9fe6021bca284f4b44919c6167872d144817dd7334823c201730c15a3f46baa46a42c622f6bea1b186eaa96de0aa264a40e1df4a9154'
    
        })
    },//音乐 id：xxx
    getLyric(params){
  return axios.get(base.lyric,{
    params
  })
 },//歌词id
}
export default api